<?php
require('config.php');

        $user_id=$_REQUEST['user_id'];
        $orderId=$_REQUEST['orderId'];
		$sql="update ".$oto."_orders set orderFlag='0' where userId='{$user_id}' and orderId='{$orderId}'";
		$result=$db->query($sql);
		if($result)
		{
			$data[0]['pan']=1;
		}
		echo json_encode($data);
?>